﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Class1 的摘要描述
/// </summary>

[System.ComponentModel.DataObjectAttribute(true)]
public partial class BLL_ManageUserRoleMapping
{
    public BLL_ManageUserRoleMapping()
    {
        //
        // TODO: 在此加入建構函式的程式碼
        //
    }

    ////SELECT 角色:登入者有權設的角色
    //[System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Select)]
    //public DataTable BLL_SelectPapasWhoICanSet(string UserID)
    //{
    //    clsDBUtility dbUtil = clsDBUtility.GetInstance();
    //    return dbUtil.BLL_Public_SelectAllPapas(RoleID);
    //}

    //SELECT
    [System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Select)]
    public DataTable BLL_Select(string UserID, string EmployeeID)
    {
        clsDBUtility dbUtil = clsDBUtility.GetInstance();
        return dbUtil.ManageUserRoleMapping_Select(UserID, EmployeeID);
    }

    //INSERT
    [System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Insert)]
    public int BLL_Insert(int RoleID, string EmployeeID)
    {
        clsDBUtility dbUtil = clsDBUtility.GetInstance();
        return dbUtil.ManageUserRoleMapping_Insert(RoleID, EmployeeID);
    }

    //DELETE
    [System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Update)]
    public int BLL_Delete(int original_RoleID, string original_EmployeeID)
    {
        clsDBUtility dbUtil = clsDBUtility.GetInstance();
        return dbUtil.ManageUserRoleMapping_Delete(original_RoleID, original_EmployeeID);
    }


}
